﻿using QFramework;

namespace HKTools
{
    public class CMD_StartNewDialog3D : AbstractCommand
    {
        string dialogName;
        bool isStartImmediately = false;
        HK_SimpleDialog3D simpleDialog3D;

        public CMD_StartNewDialog3D(string dialogName, bool isStartImmediately, HK_SimpleDialog3D simpleDialog3D)
        {
            this.dialogName = dialogName;
            this.isStartImmediately = isStartImmediately;
            this.simpleDialog3D = simpleDialog3D;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_SimpleDialogSystem>().StartNewDialog3D(dialogName, isStartImmediately, simpleDialog3D);
        }
    }
}